<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			var stu ={
				id:1,
				name:"中山",
				age:18
			}
			
			//for  in 对象
			for (var i in stu) {
				document.write(i+","+stu[i]+"<br />");
			}
			
			//with
			with (stu){
				document.write(id+","+name+","+age);
			}
		</script>
	</body>
</html>
